__author__ = 'mars'

import os
import sys
dir='d:\\fx\\'
for root, dirs, files in os.walk(dir):
    for name in files:
        if 'xls' in name:
            str1 =  os.path.join(root, name)

            a1=2

            str1 = str1 + ' ' +   os.path.join(root, 'its_stop_gps.ini')
            #print str1
            str3= 'python C:\data\its_gps_ratio_gen.py ' + str1
            #print str3
            str2 = root.split('\\')[2].lower()
            #print name
            #print str1

            str2 = 'python C:\data\line_gen_new3.py ' + str1 + ' ' + str2

            print str2

